<?php
$share_title = "Vinn gourmetlunch under High Camp";
?>

<html>
<head>
    <title><?php echo $share_title;?></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta property="og:title" content="<?php echo $share_title;?>" />
<meta property="og:type" content="food" />
<!-- <meta property="og:url" content="<?php echo $view->config['facebooktab_share_url'] . "&app_data=" . $view->comment['data_id']; ?>" /> -->
<meta property="og:image" content="http://ssl.socialmediatoolbox.no/contest/exist/images/logo.png" />
<meta property="og:site_name" content="<?php echo $share_title;?>" />
<meta property="fb:admins" content="<?php echo $view->config['facebook_admin_user_id'];?>" />
<meta property ="og:description" content="Stem på mitt bidrag slik at jeg kan invitere 5 venner på en gourmetlunsj på High Camp 2012" />
<meta property="fb:app_id" content="<?php echo $view->config['facebook_app_id'];?>" />
</head>
<body>
    <?php 
        $redirectURL = $view->config['facebooktab_share_url'] . "&app_data=" . $view->data_id;
        if($view->data_id == 0) {
            $redirectURL = $view->config['facebooktab_share_url'];
        }
    ?>
    <script>window.location='<?php echo $redirectURL; ?>';</script>
<center>
    <img src="http://ssl.socialmediatoolbox.no/contest/exist/images/logo.png" />
</center>
</body>
</html>